package com.ruoyi.project.tool.swagger.UserController;

import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.common.utils.ServletUtils;
import com.ruoyi.framework.security.LoginUser;
import com.ruoyi.framework.security.service.TokenService;
import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.system.domain.SysAddress;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/mobileUser/")
public class UserController extends BaseController{

    @Autowired
    private TokenService tokenService;


    @ApiOperation("获取用户详细")
    @GetMapping("/getInfo")
    public AjaxResult getUser()
    {
        return AjaxResult.success(SecurityUtils.getLoginUser().getUser());
    }

}
